package hikari.persistence.handlersimpl;

import com.gooddies.wiring.annotations.WiringComponent;
import hikari.objects3d.Basic3dObject;
import hikari.objects3d.BillBoard3dObject;
import hikari.persistence.file.FileSection;
import hikari.persistence.persisthandlers.IPersistantObject3dReadHandler;
import hikari.persistence.persisthandlers.PersistantHandler;
import org.swig.jirr.ISceneManager;

@WiringComponent(singleton = true, lazy = true)
@PersistantHandler(sectionName = "billboard")
public class BillBoardLoadHandler implements IPersistantObject3dReadHandler {

    private BillBoardLoadHandler() {
    }

    @Override
    public Basic3dObject read(ISceneManager sceneManager, Basic3dObject object, FileSection reader) {
        BillBoard3dObject billboard = new BillBoard3dObject(sceneManager);
        return billboard;
    }
}
